<?php
namespace login\view;

class Loginview {
	private static $sessionLoggedIn = "loggedin";
	private static $getRegister = "register";
	private static $getAddUser = "adduser";
	private static $login = "login";

	/**
	 * @return boolean
	 */
	public function getRegisterInfo() {
		return isset($_GET[self::$getRegister]);
	}
	/**
	 * @return boolean
	 */
	public function getaddUserInfo() {
		return isset($_GET[self::$getAddUser]);
	}

	public function setSessionLogin() {
		$_SESSION[self::$sessionLoggedIn] = true;
	}
	/**
	 * @return boolean
	 */
	public function getSessionLoggedinInfo() {
		return isset($_SESSION[self::$sessionLoggedIn]);
	}
	/**
	 * @return boolean
	 */
	public function getLoginInfo() {
		return isset($_GET[self::$login]);
	}
}